package com.scau.wrongtitle.repository;

import com.scau.wrongtitle.domin.QuestionOption;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface QuestionOptionRepository extends JpaRepository<QuestionOption, Long> {

    @Query(value = "select content from QuestionOption where questionId = :id")
    List<String> findAllByQuestionId(@Param("id") long id);

}
